package com.pai4j.pgc.pojo.es;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;


/**
 * ES 数据同步抽象消息结构
 */
@Data
public class AbstractESMessageDTO {

    private String id;

    @JsonProperty("path_id")
    private Long pathId;

    @JsonProperty("type")
    private Integer type;

    @JsonProperty("biz_id")
    private String bizId;

    @JsonProperty("author")
    private String author;

    @JsonProperty("data_json")
    private String data;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("last_date")
    private Date createDate;
}
